<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-03-10 23:27:20
 * @LastEditTime: 2022-08-23 22:19:22
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Http\Validates\System;

class AttachmentValidate
{

    public function upload()
    {
        $rules = ['file' => "required|mimes:gif,jpg,jpeg,png|max:20000"];
        $messages = [
            'file.required' => '附件必选！',
            'file.mimes' => '只能上传图片格式',
            'file.max' => '大小不能超过20MB',
        ];
        return [$rules, $messages];
    }
}
